import Vue from 'vue'
import Router from 'vue-router'
import Index from './Index.vue'
import add from './view/Dialog'
Vue.use(Router)
//路由
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path:'/add',
      name: 'add',
      component: add
    }
    // {
    //   path: '/noaccess',
    //   name: 'noaccess',
    //   label: '无权限页面',
    //   component: resolve => require(['@/components/no-access.vue'], resolve)
    // }
  ]
})
